﻿using EasyAbp.Abp.Trees;
using Joy.Erp.BasicArchives;
using Joy.Erp.BasicArchives.Localization;
using Volo.Abp.Application;
using Volo.Abp.Authorization;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
using Volo.Abp.SettingManagement;
using Volo.Abp.VirtualFileSystem;

namespace Joy.Erp.Ufida
{
    [DependsOn(
        typeof(BasicArchivesDomainSharedModule),
        typeof(AbpDddApplicationContractsModule),
        typeof(AbpAuthorizationModule),
        typeof(AbpSettingManagementApplicationContractsModule),
        typeof(AbpTreesApplicationContractsModule),
        typeof(BasicArchivesApplicationContractsModule)
        )]
    public class UfidaApplicationContractsModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpVirtualFileSystemOptions>(options =>
            {
                options.FileSets.AddEmbedded<UfidaApplicationContractsModule>();
            });

            Configure<AbpLocalizationOptions>(options =>
            {
                options.Resources
                    .Get<BasicArchivesResource>()
                    .AddVirtualJson("/Localization/Ufida");
            });
        }
    }
}
